import request from "src/utils/request";
import type {QueryPageParams} from 'src/types/requestParam'

// 获取首页文章列表
export const gitee=()=> {
  return request.post(`/oauth/render/gitee`);
}

export const weibo=()=> {
  return request.post(`/oauth/render/weibo`);
}

export const github=()=> {
  return request.post(`/oauth/render/github`);
}
export const callback=(data:any,source:any)=> {
    return request.post(`/oauth/callback/${source}`, {...data});
  }
export default{
    gitee,weibo,github,callback

}